/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cardgame.game.monsters;

import cardgame.game.*;
import cardgame.game.events.*;

/**
 *
 * @author Carl
 */
public class Ghost extends MonsterCard{

    public Ghost(){
        description = new Description("Ghost", "Indestructible.");
        manaTypes = new Mana[]{Mana.CUSTOM};
    }

    @Override
    public boolean preEvent(Game game, Event receivedEvent){
        super.preEvent(game, receivedEvent);
        if(receivedEvent instanceof DestroyMonsterEvent){
            DestroyMonsterEvent event = (DestroyMonsterEvent) receivedEvent;
            if(event.getMonsterCard() == this){
                return false;
            }
        }
        return true;
    }
}
